package com.carepad.action.home;

import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.text.ParseException;
import com.carepad.action.AbstractManagementAction;


public class ImplementationDateAction extends AbstractManagementAction{

	private static final long serialVersionUID = 1L;
	private String implDate;
	private InputStream inputStream;

	public InputStream getInputStream() {
		return inputStream;
	}

	public void setInputStream(InputStream inputStream) {
		this.inputStream = inputStream;
	}

	public String getImplDate() {
		return implDate;
	}

	public void setImplDate(String implDate) {
		this.implDate = implDate;
	}


	public String execute() throws ParseException{
		
		try {			
		
			setImplementationDate(getImplDate());
			
			inputStream = new ByteArrayInputStream("success".getBytes());
			return SUCCESS;

		} catch (Exception e) {
			e.printStackTrace();
			inputStream = new ByteArrayInputStream("error".getBytes());
			return SUCCESS;
		}
	}
}
